﻿using ProductMonitor.UserControls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace ProductMonitor.ViewModels
{
    class MainWindowVM : INotifyPropertyChanged
    {

		private UserControl _MonitorUC;

		public UserControl MonitorUC
        {
			get {
				if (_MonitorUC==null)
				{
					_MonitorUC = new MonitorUC();
				}
				return _MonitorUC;  }
			set { _MonitorUC = value;
				if (PropertyChanged!=null)
				{
					PropertyChanged(this, new PropertyChangedEventArgs("MonitorUC"));
				}
            }
		}

        public event PropertyChangedEventHandler? PropertyChanged;
    }
}
